//
//  SwitchTabbarView.swift
//  波形图demo
//
//  Created by apple on 2021/2/22.
//

import SwiftUI

struct SwitchTabbarView: View {
    @State var selection: Int = 0
    var body: some View {
        NavigationView {
            VStack(spacing: 0) {
                Group {
                    switch selection {
                    case 0: ModelView()
                    case 1: ModelView()
                    case 2: ModelView()
                    default: ModelView()
                    }
                }.frame(maxWidth: /*@START_MENU_TOKEN@*/.infinity/*@END_MENU_TOKEN@*/, maxHeight: /*@START_MENU_TOKEN@*/.infinity/*@END_MENU_TOKEN@*/, alignment: .center)
                
//                TabbarView()
            }
        }
    }
}

struct SwitchTabbarView_Previews: PreviewProvider {
    static var previews: some View {
        SwitchTabbarView()
    }
}
